/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    tito
 * @generated
 */
public class CategoriaDisciplinaSoap implements Serializable {
	public static CategoriaDisciplinaSoap toSoapModel(CategoriaDisciplina model) {
		CategoriaDisciplinaSoap soapModel = new CategoriaDisciplinaSoap();

		soapModel.setCategoriaId(model.getCategoriaId());
		soapModel.setDisciplinaId(model.getDisciplinaId());
		soapModel.setNombre(model.getNombre());
		soapModel.setEdadMinima(model.getEdadMinima());
		soapModel.setEdadMaxima(model.getEdadMaxima());

		return soapModel;
	}

	public static CategoriaDisciplinaSoap[] toSoapModels(
		CategoriaDisciplina[] models) {
		CategoriaDisciplinaSoap[] soapModels = new CategoriaDisciplinaSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static CategoriaDisciplinaSoap[][] toSoapModels(
		CategoriaDisciplina[][] models) {
		CategoriaDisciplinaSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new CategoriaDisciplinaSoap[models.length][models[0].length];
		}
		else {
			soapModels = new CategoriaDisciplinaSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static CategoriaDisciplinaSoap[] toSoapModels(
		List<CategoriaDisciplina> models) {
		List<CategoriaDisciplinaSoap> soapModels = new ArrayList<CategoriaDisciplinaSoap>(models.size());

		for (CategoriaDisciplina model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new CategoriaDisciplinaSoap[soapModels.size()]);
	}

	public CategoriaDisciplinaSoap() {
	}

	public long getPrimaryKey() {
		return _categoriaId;
	}

	public void setPrimaryKey(long pk) {
		setCategoriaId(pk);
	}

	public long getCategoriaId() {
		return _categoriaId;
	}

	public void setCategoriaId(long categoriaId) {
		_categoriaId = categoriaId;
	}

	public long getDisciplinaId() {
		return _disciplinaId;
	}

	public void setDisciplinaId(long disciplinaId) {
		_disciplinaId = disciplinaId;
	}

	public String getNombre() {
		return _nombre;
	}

	public void setNombre(String nombre) {
		_nombre = nombre;
	}

	public long getEdadMinima() {
		return _edadMinima;
	}

	public void setEdadMinima(long edadMinima) {
		_edadMinima = edadMinima;
	}

	public long getEdadMaxima() {
		return _edadMaxima;
	}

	public void setEdadMaxima(long edadMaxima) {
		_edadMaxima = edadMaxima;
	}

	private long _categoriaId;
	private long _disciplinaId;
	private String _nombre;
	private long _edadMinima;
	private long _edadMaxima;
}